package com.getword.domain;


import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;
import java.util.List;

@Getter
@Setter
@ToString
@Document(collection = "videoComment")
public class VideoComment {
    @Id
    @Field("_id")
    private String id;

    private String videoId;

    @DBRef
    private User user;
    private Date time;
    private String content;
    /**
     * [{from,to,time,content},{}]
     */
    private List<Reply> replyList;
}
